var express = require('express');
var router = express.Router();
// 引入封装好的db/sql.js文件
var sql = require('../db/sql');

/* GET home page. */
router.get('/', function(req, res, next) {
  var aaa = req.query.callback;
  sql('eting','select * from user')
  .then(data=>{
    res.send(data)
  }).catch(err=>{
    console.log(err);
  })
});

module.exports = router;
